
<div data-role="content" data-scroll="y" height="80%">
	<div data-iscroll="scroller">
		<h3>
			<?=$rows->fullname?>
		</h3>
		<h4>
			<?php
			if($rows->gender==0) :
			echo "Male";
			else:
			echo "Female";
			endif;
			?>
		</h4>

		<h4>
			<?php
			if (isset($rows->location) and $rows->location!=NULL):
			echo "Lives in ".$rows->location;
			endif;
			?>
		</h4>
		<h4>
			<?php
			if (isset($rows->birthdate) and $rows->birthdate!="0000-00-00"):
			echo "was born in ".$rows->birthdate;
			endif;
			?>
		</h4>
		<h4>
			<i> <?php
			if (isset($rows->language) and $rows->language!=NULL):
			echo "speaks ".$rows->language;
			endif;
			?>
			</i>
		</h4>
		<?php
		if (isset($rows->interest) and $rows->interest!=NULL):
		echo "<h4>Hobbies and Interests:</h4> <p>".$rows->interest."</p>";
		endif;
		?>



		<?php if ($rows->userid==$this->session->userdata('userid')) :?>
		
	<a href="<?=site_url('user_controller/sign_out');?>"
	data-role="button">Sign Out</a>
	
<?php else: ?>

		<a href="<?=site_url('messege_controller/to_send_messege?receiverid='.$rows->userid);?>"
		data-role="button">Leave him a message!</a>
		<?php if(!$is_my_friend):?> 
		<a href="<?=site_url('friend_controller/add_as_friend?friendID='.$rows->userid);?>"
		data-role="button">Add As Friend!</a>
		

<?php endif;endif;?>
<br>
<br>

	</div>
</div>
